package com.meals.system.dao;

import com.meals.system.entity.WhitesMealOrder;
import com.meals.system.util.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/14
 */
@Mapper
public interface WhitesMealOrderMapper {

    WhitesMealOrder selectByPrimaryKey(Long orderId);

    WhitesMealOrder selectByOrderNo(String orderNo);

    List<WhitesMealOrder> findWhitesMealOrderList(PageQueryUtil pageUtil);

    int getTotalWhitesMealOrders(PageQueryUtil pageUtil);

    List<WhitesMealOrder> selectByPrimaryKeys(@Param("orderIds") List<Long> orderIds);

    int insert(WhitesMealOrder record);

    int insertSelective(WhitesMealOrder record);

    int deleteByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(WhitesMealOrder record);

    int updateByPrimaryKey(WhitesMealOrder record);

    int checkOut(@Param("orderIds") List<Long> orderIds);

    int closeOrder(@Param("orderIds") List<Long> orderIds, @Param("orderStatus") int orderStatus);

    int checkDone(@Param("orderIds") List<Long> asList);

}
